#/bin/bash

#parser="http://ip138.com/ip2city.asp" 
#wget $parser -U mozilla -O ip.txt;
#grep "<center>" ip.txt 
#echo $str

#!/bin/bash
while :
do
ifconfig eth0 |awk  '/inet addr/{gsub(/addr:/,"");print $2}' > ipadd.txt
/usr/bin/mail -s "The Current IP Address" xxx@sina.com < ipadd.txt

sleep 10m
done
